package com.phone.store.repository;

import com.phone.store.entity.PhoneCategory;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author fangyu
 * @version v1.0.0
 * @date 2020/7/30 2:09 下午
 */
public interface PhoneCategoryRepository extends JpaRepository<PhoneCategory, Integer> {
    /**
     * 根据类型查分类
     * @param categoryType 类型
     * @return
     */
    public PhoneCategory findByCategoryType(Integer categoryType);
}
